package com.esiran.payadmin.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.esiran.payadmin.util.NumUtilEx;

@TableName("`order`")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("num")
    private String num;
    @TableField("txNum")
    private String txNum;
    @TableField("merchId")
    private Long merchId;
    @TableField("merchName")
    private String merchName;
    @TableField("extraId")
    private String extraId;
    @TableField("merchNum")
    private String merchNum;
    @TableField("goodsName")
    private String goodsName;
    @TableField("amount")
    private Long amount;
    @TableField("state")
    private Long state;
    @TableField("notifyUrl")
    private String notifyUrl;
    @TableField("createTime")
    private java.util.Date createTime;
    @TableField("updateTime")
    private java.util.Date updateTime;
    @TableField(exist=false)
    private Double money;

    public Long getId() {
      return id;
    }

    public void setId(Long id) {
      this.id = id;
    }


    public String getNum() {
      return num;
    }

    public void setNum(String num) {
      this.num = num;
    }


    public Long getMerchId() {
      return merchId;
    }

    public void setMerchId(Long merchId) {
      this.merchId = merchId;
    }


    public String getMerchName() {
      return merchName;
    }

    public void setMerchName(String merchName) {
      this.merchName = merchName;
    }


    public String getExtraId() {
      return extraId;
    }

    public void setExtraId(String extraId) {
      this.extraId = extraId;
    }


    public String getMerchNum() {
      return merchNum;
    }

    public void setMerchNum(String merchNum) {
      this.merchNum = merchNum;
    }


    public String getGoodsName() {
      return goodsName;
    }

    public void setGoodsName(String goodsName) {
      this.goodsName = goodsName;
    }


    public Long getAmount() {
      return amount;
    }

    public void setAmount(Long amount) {
      this.amount = amount;
    }


    public Long getState() {
      return state;
    }

    public void setState(Long state) {
      this.state = state;
    }


    public java.util.Date getCreateTime() {
      return createTime;
    }

    public void setCreateTime(java.util.Date createTime) {
      this.createTime = createTime;
    }


    public java.util.Date getUpdateTime() {
      return updateTime;
    }

    public void setUpdateTime(java.util.Date updateTime) {
      this.updateTime = updateTime;
    }

    public String getTxNum() {
        return txNum;
    }

    public void setTxNum(String txNum) {
        this.txNum = txNum;
    }

    public Double getMoney() {
        return NumUtilEx.fixMoney2double(amount);
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }
}
